package com.jbp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbp.domin.LuckReq;
import com.jbp.domin.LuckReq2;
import com.jbp.model.*;
import com.jbp.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lucheng feng
 * @email retailers@gmail.com
 * @date 2020-06-26 13:49:51
 */
public interface LotteryService extends IService<Lottery> {


    void saveLots(List<Lottery> lotList);

    R luck(LuckReq luckReq);

    R luck2(LuckReq2 luckReq);

    List<Lottery>  personRecord(Map<String,Object> params);

    List<PersonLottery>  personLottery(Map<String,Object> params);

    Integer personCount(Map<String,Object> params);

    Integer personLotteryCount(Map<String,Object> params);

    long getZrjc();

    long getJrjc();

    long getZjc(String startDate, String endDate);

    long getZjc2(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getZrBd();

    List<EventUserLuckBangdanModel> getJrBd();

    List<EventUserLuckBangdanModel> getZBd(String startDate, String endDate);

    List<LianMengBangdanModel> getLianMengBd(String startDate, String endDate);

    List<LianMengBangdanModel> getHahaniuHd1Bd(String startDate, String endDate);

    List<LianMengBangdanModel> getHahaniuHd2Bd(String startDate, String endDate);

    List<LianMengBangdanModel> getNaonaoHd1Bd(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getZrBdYk();

    List<EventUserLuckBangdanModel> getJrBdYk();

    List<EventUserLuckBangdanModel> getZBdYk(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getYukalist(String startDate, String endDate);

    int getHaiouCount();

    List<EventUserLuckBangdanModel> getHaiouBd1();
    List<EventUserLuckBangdanModel> getHaiouBd2();
    List<EventUserLuckBangdanModel> getHaiouBd3();
    List<EventUserLuckBangdanModel> getHaiouBd4();

    List<UserLianMengModel> getLianMengBdInroom(String startDate, String endDate, Integer roomId);

    List<EventUserLuckBangdanModel> getZBdPay(String startDate, String endDate);

    List<EventUserLuckBangdanModel> getRoomZBdPay(String startDate, String endDate);

    Integer todayCount(Integer uid, Integer giftId);

    List<RoomRate> roomRate();

    List<RoomRate> ipRate();

    List<RoomRate> deviceRate();
}

